package com.bv.hr.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author CYT7
 * @version 1.0
 * @time 12月 24,2021
 * @describe User实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("user")
public class User extends Model<User> implements Serializable {
    private static final long serialVersionUID = -3332864762386895093L;
    /**用户ID*/
    @TableId
    private Long id;
    /**用户名*/
    private String username;
    /**密码*/
    private String password;
    /**姓名*/
    private String name;
    /**联系方式*/
    private String phone;
    /**头像*/
    private String avatar;
    /**状态 0:禁用 1:正常*/
    private Integer status;
    /**部门id*/
    private Long deptId;
    /**加密盐*/
    private String salt;
    /**是否删除,-1:已删除0:正常*/
    private Integer delFlag;
    /**创建人*/
    private String createBy;
    /**创建时间*/
    private Date createTime;
    /**更新人*/
    private String updateBy;
    /**更新时间*/
    @TableField(update = "now()")
    private Date updateTime;
}
